{"ast":null,"code":"export var getOtherUserForNotMultiChat=function getOtherUserForNotMultiChat(store,membershipList){if(membershipList.items.length>0){for(var i=0;i<membershipList.items.length;i++){if(membershipList.items[i].usersListItem.id!==store.getProfile().id){return membershipList.items[i].usersListItem;}}}return store.getProfile();};","map":{"version":3,"names":["getOtherUserForNotMultiChat","store","membershipList","items","length","i","usersListItem","id","getProfile"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/src/utils/Membership.ts"],"sourcesContent":["import {UserListItem} from \"../models/response/UserListItem\";\nimport Store from \"../store/store\";\nimport {MembershipListResponse} from \"../models/response/MembershipListResponse\";\n\nexport const getOtherUserForNotMultiChat = (store: Store, membershipList: MembershipListResponse): UserListItem => {\n    if (membershipList.items.length > 0) {\n        for (let  i = 0; i < membershipList.items.length; i++) {\n            if (membershipList.items[i].usersListItem.id !== store.getProfile().id) {\n                return membershipList.items[i].usersListItem;\n            }\n        }\n    }\n    return store.getProfile();\n}"],"mappings":"AAIA,MAAO,IAAMA,4BAA2B,CAAG,QAA9BA,4BAA2B,CAAIC,KAAY,CAAEC,cAAsC,CAAmB,CAC/G,GAAIA,cAAc,CAACC,KAAK,CAACC,MAAM,CAAG,CAAC,CAAE,CACjC,IAAK,GAAKC,EAAC,CAAG,CAAC,CAAEA,CAAC,CAAGH,cAAc,CAACC,KAAK,CAACC,MAAM,CAAEC,CAAC,EAAE,CAAE,CACnD,GAAIH,cAAc,CAACC,KAAK,CAACE,CAAC,CAAC,CAACC,aAAa,CAACC,EAAE,GAAKN,KAAK,CAACO,UAAU,EAAE,CAACD,EAAE,CAAE,CACpE,MAAOL,eAAc,CAACC,KAAK,CAACE,CAAC,CAAC,CAACC,aAAa,CAChD,CACJ,CACJ,CACA,MAAOL,MAAK,CAACO,UAAU,EAAE,CAC7B,CAAC"},"metadata":{},"sourceType":"module"}